﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Net.Http;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using Newtonsoft.Json;
using XXX.Models.XXXEntities;
using XXX.Bo;
using LH.Model.ST;
using ZDXieTong.Models.XXXEntities;
using fuzhu;

// For more information on enabling Web API for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860

namespace XXX.api.Controllers
{
    /// <summary>
    /// 染料，获取库存
    /// </summary>
    [Route("api/wms/[controller]")]
    [ApiController]
    //[Authorize]
    public class ST_CurrentStockController : ControllerBase
    {
        //private readonly IKuCunReqRepository _invRepository;
        private readonly ILogger<ST_CurrentStockController> _logger;
        public ST_CurrentStockController(ILogger<ST_CurrentStockController> logger)
        {
            //_invRepository = xxxRepository;
            _logger = logger;
        }


         


            [HttpPost]
            public Models.RetModel2 Post(StockQuery model)
            {

            Models.RetModel2 ret = DBService.ReErrObject( DbHelper.GetDbString(model));
                return ret;
                //return ReturnStd.Success(jsonstr);
            }

         


    }


}
